package com.ruoyi.ems.service;

import com.ruoyi.ems.domain.RefundOrder;

import java.util.List;

/**
 * 退款单Service接口
 * 
 * @author sh
 * @date 2023-12-11
 */
public interface IRefundOrderService 
{
    /**
     * 查询退款单
     * 
     * @param id 退款单主键
     * @return 退款单
     */
    public RefundOrder selectRefundOrderById(Long id);

    /**
     * 查询退款单列表
     * 
     * @param refundOrder 退款单
     * @return 退款单集合
     */
    public List<RefundOrder> selectRefundOrderList(RefundOrder refundOrder);

    /**
     * 新增退款单
     * 
     * @param refundOrder 退款单
     * @return 结果
     */
    public int insertRefundOrder(RefundOrder refundOrder);

    /**
     * 修改退款单
     * 
     * @param refundOrder 退款单
     * @return 结果
     */
    public int updateRefundOrder(RefundOrder refundOrder);

    /**
     * 批量删除退款单
     * 
     * @param ids 需要删除的退款单主键集合
     * @return 结果
     */
    public int deleteRefundOrderByIds(Long[] ids);

    /**
     * 删除退款单信息
     * 
     * @param id 退款单主键
     * @return 结果
     */
    public int deleteRefundOrderById(Long id);

    List<RefundOrder> selectRefundOrderByStates(String processing);

    RefundOrder selectRefundOrderByOrderCode(String orderCode);
}
